<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<s:if test="productVOList != null && productVOList.size() > 0">
	<s:iterator value="productVOList" var="productVO" status="countIdx">
		<div <s:if test="pageBean.currentPage == 1 && #countIdx.index == 0">style="margin-top: 50px"</s:if> onclick="goProductDetail('<s:property value="#productVO.productModel.id" />');">
			<div class="panel-heading padding_10">
				<div class="individual_center synchysis_box clearfix" style="width: 100%; padding: 5px 10px;">
					<a class="media-left pull-left" style="width: 33%;">
					<img alt="60x60" data-src="" style="width: 100%; border-radius:10px;"
						src="<s:if test='#productVO.productModel.image != null'><s:property value='#productVO.productModel.image' /></s:if><s:else>resources/travel/weixin/images/individual_smallimg.jpg</s:else>" data-holder-rendered="true" class="img-rounded">
					</a>
					<div class="media-body evaluation_left displayinline" style="float: right;width: 66%;">
						<h4 class="media-heading username color-write">
							<dl class="clearfix individual_dl"><!--class="individualtitle" -->
								<dt class="dt_product_name" style="font-weight: bold;">
									<s:if test="#productVO.productModel.name != null && #productVO.productModel.name.length() > 25">
										<s:property value='#productVO.productModel.name.substring(0, 25)' />...
									</s:if>
									<s:else>
										<s:property value='#productVO.productModel.name' />
									</s:else>
								</dt>
								<dt class="dt_product_startingDate">
									出发日期&nbsp;&nbsp;
									<s:if test="#productVO.productModel.startingDate != null && #productVO.productModel.startingDate.length() > 21 ">
										<s:property value='#productVO.productModel.startingDate.substring(0, 21)' />...
									</s:if>
									<s:else>
										<s:property value='#productVO.productModel.startingDate' />
									</s:else>
								</dt>
								<dt class="dt_product_startAddress"><s:property value='#productVO.productModel.startAddress' />出发</dt>
								<dt class="dt_product_price"><span style="font-weight: bold;"><s:text name="format.number"><s:param value="#productVO.productModel.price"/></s:text></span><span style="font-size: 0.7em;">元起</span></dt>
							</dl>
						</h4>
					</div>
				</div>
			</div>
		</div>
	</s:iterator>
</s:if>
<s:if test="pageBean.currentPage == 1">
	<s:if test="productVOList == null || productVOList.size() <= 0">
		<script type="text/javascript">
		$(".top_point").find("i").text("未找到满足条件的产品");
		$("#nofonudDiv").show();
		</script>
	</s:if>
	<s:elseif test="pageBean.resultItemCount == pageBean.endIndex">
		<script type="text/javascript">
		$(".top_point").find("i").text("查询完毕");
		</script>
	</s:elseif>
	<s:else>
		<script type="text/javascript">
		$(".top_point").find("i").text("未找到满足条件的产品，为您推荐以下产品");
		$(".top_point").slideDown();
		setTimeout(function(){
			//$(".top_point").slideUp();
			//$(".travel_nav").animate({top:"0px"});
		}, 3000);
		$(".travel_nav").animate({top:"30px"});
		</script>
	</s:else>
	<s:if test="productVOList != null && productVOList.size() == 1">
		<script type="text/javascript">
		$("#fengKe").show();
		</script>
	</s:if>
	<s:else>
		<script type="text/javascript">
		$("#fengKe").hide();
		</script>
	</s:else>
	<s:if test="productVOList == null || productVOList.size() <= 12">
		<script type="text/javascript">
		$("#loading").hide();
		$("#finsh").show();
		finsh = true;
		</script>
	</s:if>
	<s:else>
		<script type="text/javascript">
		finsh = false;
		$("#loading").show();
		$("#finsh").hide();
		</script>
	</s:else>
</s:if>
<s:if test="pageBean.currentPage != 1">
	<s:if test="productVOList.size() < 12">
		<script type="text/javascript">
		finsh = true; //说明已经数据全部加载完成了
		</script>
	</s:if>
</s:if>
<script type="text/javascript">
$('#indexContent').find('img').each(function() {
	$(this).css('height', $(this).css('width'));
});
</script>